Skip to content

perf: add ability to ignore inconsistent solutions#2396

Open
Christopher-Chianelli wants to merge 1 commit into
TimefoldAI:mainfrom
Christopher-Chianelli:perf/jit-graph
Open

perf: add ability to ignore inconsistent solutions#2396
Christopher-Chianelli wants to merge 1 commit into
TimefoldAI:mainfrom
Christopher-Chianelli:perf/jit-graph

Conversation

@Christopher-Chianelli

Copy link
Copy Markdown
Contributor

Added a new preview feature IGNORE_INCONSISTENT_SOLUTIONS.
When enabled, when a move causes the solution to be in an inconsistent state, that move is effectively ignored; calculateScore will return a score with the minimum init value possible (i.e. a score that is less than all other scores) and no shadow variables will be updated.

Technically, this potentially introduces a score trap: all inconsistent solutions get the same -infinity score. However, this doesn't seem to be a problem in the benchmarks I performed.

TopologicalGraph#commitChanges signature has changed to return a boolean which is true iff the graph has loops (and thus the solution inconsistent.

Benchmarks show significant improvements for Machine Job Scheduling on Enterprise.

@sonarqubecloud

sonarqubecloud Bot commented Jun 19, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant